package com.yunfei.yikao.web.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author: yunfei
 * @Date: 19:56
 */
public class loginWebMvcConfigurer implements WebMvcConfigurer {
@Autowired
    private AuthHanderInterceptor authHanderInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(authHanderInterceptor).addPathPatterns("/**");
             
    }
}
